package com.xwzn.resident.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xwzn.resident.R;
import com.xwzn.resident.model.Bszn;

import java.util.List;

/**
 * @Description 办事指南适配器
 * @Author HanKaiYang
 * @CreateDate 2019/12/23 11:05
 * @Version 1.0
 */
public class BsznAdapter extends BaseQuickAdapter<Bszn, BaseViewHolder> {

    public BsznAdapter( List<Bszn> data) {
        super(R.layout.bszn_recycler_item,data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Bszn item) {
        helper.setText(R.id.tv_bszn_title,item.getTitle())
                .setText(R.id.tv_bszn_content,item.getContent())
                .setBackgroundRes(R.id.iv_bsnz,item.getImage());
    }
}
